import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../components/Index/Index'
import MusicList from '../components/MusicList/MusicList'
import Rank from '../components/Rank/Rank'
import Search from '../components/Search/Search'
import Gedanlist from '../components/GedanList/GedanList'
import GedanDetail from '../components/GedanDetail/GedanDetail'
import MvDetail from '../components/MvDetail/MvDetail'
import MvList from '../components/MvList/MvList'
import RemenGeshou from '../components/RemenGeshou/RemenGeshou'
import GeshouDetail from '../components/GeshouDetail/GeshouDetail'
import Play from '../components/Play/Play'

Vue.use(VueRouter)

const routes = [{
  path: '/index',
  component: Index,
}, {
  path: '/',
  redirect: '/index'
}, {
  path: '/musiclist',
  component: MusicList
}, {
  path: '/rank',
  component: Rank
}, {
  path: '/search',
  component: Search
}, {
  path: '/gedanlist',
  component: Gedanlist
}, {
  path: '/gedanDetail',
  component: GedanDetail
},{
  path: '/mvDetail',
  component: MvDetail
},{
  path: '/mvlist',
  component: MvList
},{
  path: '/remengeshou',
  component: RemenGeshou
},{
  path: '/geshouDetail',
  component: GeshouDetail
},{
  path: '/play',
  component: Play
}]

const router = new VueRouter({
  routes
})

export default router